package com.atguigu.lease.common.login;

/**
 * 雒鑫
 */
public class LoginUserHolder {
    public static  ThreadLocal<LoginUser> threadLocal = new ThreadLocal<LoginUser>();
    //设置变量属性值
    public static void setLoginUser(LoginUser loginUser){
        threadLocal.set(loginUser);
    }
    //获取变量属性值
    public static LoginUser getLoginUser(){
        return threadLocal.get();
    }
    //删除变量属性值
    public static void clear(){
        threadLocal.remove();
    }
}
